// 招聘面试
import {request} from "../request";
import {utils} from "../../common/utils";

// 查询可应聘岗位
export function selByInit(){
    return request({
        url:'/jobDemand',
        method:'get',
    })
}

// 新增简历
export function addAtl(rsuAll){
    return request({
        url: '/emp/resume/sav',
        method: 'post',
        data:rsuAll
    })
}

// 查询所有简历
export function selAll(rsall){
    console.log("参数？",rsall)
    return request({
        url:'/emp/resume/selall',
        method:'get',
        params: rsall
    })
}


// 批量发送通知
export function batchSend(ids){
    return request({
        url:'/emp/resume/batchsend',
        method:'post',
        data:ids
    })
}

// 驳回
export function rejectOp(ros){
    let strUrl = utils.joinArrayReqParam(ros,'ids');
    console.log(ros + '请求')
    return request({
        url:'/emp/resume/rejectOp/' + strUrl,
        method:'delete'
    })
}

// 查询简历详情
export function selById(rid){
    console.log("简历详情id -> 查询 -> " + rid)
    return request({
        url:"/resumeClassify/selid/"+rid,
        method:'get',
    })
}

// 修改简历分类状态
export function uptRescById(rescli){
    return request({
        url:"/resumeClassify/uptresc",
        method:'put',
        data:rescli
    })
}

// 加入人才库
export function insfocus(foc){
    return request({
        url:'/resumeFocus/rsfo',
        method:'post',
        data:foc
    })
}

// 删除简历
export function delResume(val){
    console.log("简历管理 - 删除 -> ",val)
    return request({
        url:'/emp/resume',
        method:'delete',
        data:val
    })
}

